/**
 * Project Name:cnsy-url-short-service
 * File Name:StringUtil.java
 * Package Name:cn.cnsy123.shorturls.business.util 
 * Date: 2020年4月20日-下午4:44:12
 * Copyright (c) 2020, yangpengfei@360@126.com All Rights Reserved. 
 *
 */

package cn.cnsy123.shorturls.business.util;

import org.apache.commons.lang3.StringUtils;

/**
 * ClassName: StringUtil
 * 
 * @author yangpengfei
 * @date 2020年4月20日-下午4:44:12
 * @version 1.0
 * @since JDK 1.7
 */
public class StringUtil {
    
    
    public static String convertNotNull(String source) {
        return StringUtils.isBlank(source)? StringUtils.EMPTY : source;
    }
    
    
    public static String longConvertStr(Long source) {
        return source != null ? convertNotNull(source.toString()) : StringUtils.EMPTY;
    }

}
